class User implements Serializable {
    String username
    String name
    String password
    String verify

    static constraints = {
        username(size: 5..15, blank: false, unique: true)
        name(size: 5..15, blank: false)
        password(size: 5..15, blank: false)
        verify(validator: {val, obj ->
            obj.properties['password'] == val
        })
    }

    static transients = ['verify']

    static mapping = {
        table('T_USER')
    }
}